<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../hc.js"></script>
<title>jsonF$() &amp;&amp; setform$()</title>
</head>

<body>
<form id="f0" name="f0" method="post" action="">
	<input name="text1" type="text" value="txt1" size="5" />
	<input name="text2" type="text" value="txt2" size="5" />

	<input name="txt" type="text" size="15" value="tg1" />
	<input name="txt" type="text" size="15" value="tg2" />
	<br />
	<label>checkbox1:</label>
		<input type="checkbox" name="cbox" value="checkbox1" />1
		<input type="checkbox" name="ck2" value="ck2" />2
	
	<label>checkboxgroup:</label>
	<input type="checkbox" name="cbgrp[]" value="checkboxgrp0" />1
	<input type="checkbox" name="cbgrp[]" value="checkboxgrp1" />2
	<input type="checkbox" name="cbgrp[]" value="checkboxgrp2" />3
	<input type="checkbox" name="cbgrp[]" value="checkboxgrp3" />4
	
	<br />
	<label>radio group<input name="radiogrp" type="radio" value="radiogroup1" /></label>
	<label>radio group<input name="radiogrp" type="radio" value="radiogroup2" /></label>
	<label>radio group<input name="radiogrp" type="radio" value="radiogroup3" /></label>
	|
	<label>radio_1<input name="radio1" type="radio" value="radio1" ondblclick="this.checked=!this.checked;" /></label>
	<br />
	<label>select-one:</label>
	<select name="select1">
		<option value="select-one0">select-one0</option>
		<option value="select-one1">select-one1</option>
		<option value="select-one2">select-one2</option>
	</select>
	
	<label>select-multiple: </label>
	<select name="selm[]" size="4" multiple="multiple" id="selm">
		<option value="select-multiple0">select-multiple0</option>
		<option value="select-multiple1">select-multiple1</option>
		<option value="select-multiple2">select-multiple2</option>
		<option value="select-multiple3">select-multiple3</option>
	</select>
	
</form>
<hr />
<div id="inf"></div>
<hr />
<div id="inf2"></div>
<hr />
<form id="f1" name="f1" method="get" action="">
	<input name="text1" type="text" value="text1_1" size="5" />
	<input name="text2" type="text" value="text2_1" size="5" />

	<input name="txt[]" type="text" size="15" value="textgroup_1" />
	<input name="txt[]" type="text" size="15" value="textgroup_2" />
	<br />
	<label>checkbox1:</label>
		<input type="checkbox" name="cbox" value="checkbox1" />1
		<input type="checkbox" name="ck2" value="ck2" />2
	
	<label>checkboxgroup:</label>
	<input type="checkbox" name="cbgrp[]" value="checkboxgrp0" />1
	<input type="checkbox" name="cbgrp[]" value="checkboxgrp1" />2
	<input type="checkbox" name="cbgrp[]" value="checkboxgrp2" />3
	<input type="checkbox" name="cbgrp[]" value="checkboxgrp3" />4
	
	<br />
	<label>radio group<input name="radiogrp" type="radio" value="radiogroup1" /></label>
	<label>radio group<input name="radiogrp" type="radio" value="radiogroup2" /></label>
	<label>radio group<input name="radiogrp" type="radio" value="radiogroup3" /></label>
	|
	<label>radio_1<input name="radio1" type="radio" value="radio1" ondblclick="this.checked=!this.checked;" /></label>
	<br />
	<label>select-one:</label>
	<select name="select1">
		<option value="select-one0">select-one0</option>
		<option value="select-one1">select-one1</option>
		<option value="select-one2">select-one2</option>
	</select>
	
	<label>select-multiple: </label>
	<select name="selm[]" size="4" multiple="multiple" id="select">
		<option value="select-multiple0">select-multiple0</option>
		<option value="select-multiple1" selected="selected">select-multiple1</option>
		<option value="select-multiple2" selected="selected">select-multiple2</option>
		<option value="select-multiple3">select-multiple3</option>
	</select>
	<button type="submit">get</button>
</form>
<button type="button" onclick="f1o();">forms[1] --> forms[0]</button>
<button type="button" onclick="f1f0();">f1f0()</button>
<div id="res"></div>

<script type="text/javascript">
function f1o(){
of1=jsonF$('f1');
$('inf').innerHTML=strJSON$(of1);
if(of1)setform$(of1, 'f0');
}
function f1f0(){
$('inf2').innerHTML=of1?uriO$(of1):'';
}
/* function src$(ev){
	e=evt$(ev);
	$('res').innerHTML=e.type;
}
bind$(me,'mousemove',src$); */
</script>
</body>
</html>
